import request from "@/router/axios";

export const getCustomerList = () => {
  return request({
    url: '/api/beetles-business/remote-search/filter-customer',
    method: 'get',
  })
}

export const getCustomerListWithNoEntity = () => {
  return request({
    url: '/api/beetles-business/remote-search/filter-customer-no-entity',
    method: 'get',
  })
}

export const getDept = () => {
  return request({
    url: '/api/blade-system/dict/dictionary?code=finance_dept',
    method: 'get',
  })
}

export const getFinanceItemList = (id) => {
  return request({
    url: '/api/beetles-business/finance/receivable/get_finance_item_list',
    method: 'get',
    params: {
      id
    }
  })
}
